'''
    @Author:webrainer
    @Date:2023-05-29
    @Version:
    @Since:python3.11
    @See:
    @Description:加密模块，实现了部分加密基本功能
    @Functions:sha256()
'''

import hashlib
def sha256(s):
    return hashlib.sha256(s.encode('utf-8')).hexdigest()

#test
if __name__ == "__main__":
    print(sha256('webrainer'))